package com.common;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author：Luohuiyong
 * @Description:
 * @Date: Created in 14:43 2019/1/18
 */
public class DateUtil {

    public static String transformDate(Date date) {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
        String dateString = formatter.format(date);

        return dateString;
    }

    public static void main(String[] args) {
        System.out.println(new Date());
        System.out.println(transformDate(new Date()));
    }
}
